home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
Rings.swf
/
scripts
/
__Packages
/
RingIndicator.as
< prev
Wrap
Text File
|
2011-01-13
|
9KB
|
266 lines
var §\x01§ = 338;
while(true)
{
if(eval("\x01") == 338)
{
set("\x01",eval("\x01") + 321);
§§push(true);
}
else
{
if(eval("\x01") == 470)
{
set("\x01",eval("\x01") - 305);
break;
}
if(eval("\x01") == 810)
{
set("\x01",eval("\x01") - 340);
if(§§pop())
{
set("\x01",eval("\x01") - 305);
}
}
else if(eval("\x01") == 191)
{
set("\x01",eval("\x01") + 709);
if(§§pop())
{
set("\x01",eval("\x01") - 444);
}
}
else if(eval("\x01") == 839)
{
set("\x01",eval("\x01") - 419);
§§push(true);
}
else
{
if(eval("\x01") == 619)
{
set("\x01",eval("\x01") + 220);
break;
}
if(eval("\x01") == 165)
{
set("\x01",eval("\x01") + 518);
§§push(true);
}
else
{
if(eval("\x01") == 456)
{
set("\x01",eval("\x01") + 372);
if(!_global.RingIndicator)
{
_global.RingIndicator extends MovieClip;
var _loc2_ = _global.RingIndicator = function()
{
super();
this.destRot = 0;
this.rotSpeed = 0;
this.rotAccel = 0;
this.distToDest = 0;
this.originRot = 0;
this.dirn = 1;
this.halfDist = 0;
this.distRot = 0;
this.topSpeed = 15;
this.framesAccel = 0;
this.framesDecel = 0;
}.prototype;
_loc2_.RotateAround = function()
{
};
_loc2_.PointToCell = function(cellNum)
{
this.destRot = 60 * (cellNum - 1) - 30;
if(this.destRot < 0)
{
this.destRot += 360;
}
this.originRot = this._rotation;
if(this.originRot < 0)
{
this.originRot += 360;
}
var _loc2_ = Math.abs(this.destRot - this.originRot);
if(_loc2_ > 180)
{
this.distToDest = 360 - _loc2_;
}
else
{
this.distToDest = _loc2_;
}
this.halfDist = this.distToDest / 2;
this.rotAccel = this.distToDest / 300;
this.rotSpeed = 1;
this.distRot = 0;
if(this.destRot > this.originRot)
{
if(_loc2_ > 180)
{
this.dirn = -1;
}
else
{
this.dirn = 1;
}
}
else if(_loc2_ > 180)
{
this.dirn = 1;
}
else
{
this.dirn = -1;
}
this.distToTopSpeed = -99999;
this.framesAccel = 0;
this.framesDecel = 0;
if(this.destRot > 180)
{
this.destRot -= 360;
}
if(this.originRot > 180)
{
this.originRot -= 360;
}
};
_loc2_.Update = function()
{
if(this._rotation == this.destRot)
{
return undefined;
}
if(this.game.ringInterval < 3100)
{
this._rotation = this.destRot;
return undefined;
}
if(this.distRot < this.halfDist and this.rotSpeed < this.topSpeed)
{
this.rotSpeed += this.rotAccel;
this.framesAccel = this.framesAccel + 1;
}
var _loc2_ = this.distToDest - this.distToTopSpeed;
if(this.distRot > this.halfDist or this.distRot > _loc2_)
{
if(this.rotSpeed > 0)
{
if(this.framesDecel < this.framesAccel)
{
this.rotSpeed -= this.rotAccel;
this.framesDecel = this.framesDecel + 1;
}
}
}
if(this.rotSpeed > this.topSpeed)
{
this.rotSpeed = this.topSpeed;
this.distToTopSpeed = this.distRot;
}
if(this.rotSpeed < 0)
{
this.rotSpeed = 0;
}
this._rotation += this.rotSpeed * this.dirn;
this.distRot += Math.abs(this.rotSpeed);
if(Math.abs(this._rotation - this.destRot) < this.rotSpeed * 2)
{
this._rotation = this.destRot;
}
};
§§push(ASSetPropFlags(_global.RingIndicator.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") == 821)
{
set("\x01",eval("\x01") - 129);
§§push(true);
}
else if(eval("\x01") == 692)
{
set("\x01",eval("\x01") - 44);
if(§§pop())
{
set("\x01",eval("\x01") - 16);
}
}
else if(eval("\x01") == 659)
{
set("\x01",eval("\x01") - 40);
if(§§pop())
{
set("\x01",eval("\x01") + 220);
}
}
else if(eval("\x01") == 420)
{
set("\x01",eval("\x01") + 443);
if(§§pop())
{
set("\x01",eval("\x01") - 42);
}
}
else
{
if(eval("\x01") == 900)
{
set("\x01",eval("\x01") - 444);
break;
}
if(eval("\x01") == 0)
{
set("\x01",eval("\x01") + 55);
break;
}
if(eval("\x01") == 648)
{
set("\x01",eval("\x01") - 16);
break;
}
if(eval("\x01") == 632)
{
set("\x01",eval("\x01") + 178);
§§push(true);
}
else
{
if(eval("\x01") == 863)
{
set("\x01",eval("\x01") - 42);
break;
}
if(eval("\x01") == 683)
{
set("\x01",eval("\x01") - 683);
if(§§pop())
{
set("\x01",eval("\x01") + 55);
}
}
else
{
if(eval("\x01") != 55)
{
if(eval("\x01") == 828)
{
set("\x01",eval("\x01") - 828);
break;
}
break;
}
set("\x01",eval("\x01") + 136);
§§push(true);
}
}
}
}
}
}
}